
#ifndef __BETTY_PTY_H__
#define __BETTY_PTY_H__

#ifdef __cplusplus
extern "C" {
#endif

struct Betty_Pty;


struct Betty_Pty * Betty_CreatePty ();
void Betty_DestroyPty (struct Betty_Pty *pty);

int Betty_ForkPty (struct Betty_Pty *pty, const char *filename,
		char * const argv[], char * const envp[]);
int Betty_KillPtyChild (struct Betty_Pty *pty);

int Betty_ReadPtyData (struct Betty_Pty *pty, 
			void *buf, unsigned int count);
int Betty_WritePtyData (struct Betty_Pty *pty, 
			const void *buf, unsigned int count);

#ifdef __cplusplus
}
#endif

#endif

